import NodeGenerator from './node-generator';
import type { IPageGenerator, PageGeneratorProps, SourceCode } from '../types';

export default class PageGenerator extends NodeGenerator implements IPageGenerator {
  constructor(props: PageGeneratorProps) {
    super(props);
  }
  async compiler(): Promise<SourceCode> {
    const sourceCode = await super.compiler();
    sourceCode.defaultExportName = true;
    return sourceCode;
  }
}
